//
//  UIColor+RevanColorRGB.m
//  weibo_swift
//
//  Created by 紫荆秋雪 on 16/12/4.
//  Copyright © 2016年 紫荆秋雪. All rights reserved.
//

#import "UIColor+RevanColorRGB.h"

@implementation UIColor (RevanColorRGB)
/**
 *  随机颜色
 */
+ (UIColor *)revanColorRGB {
    return [UIColor colorWithRed:arc4random_uniform(256) / 255.0 green:arc4random_uniform(256) / 255.0 blue:arc4random_uniform(256) / 255.0 alpha:1.0];
}


+ (UIColor *)revancolorWithRed:(CGFloat) rFloat green:(CGFloat) gFloat blue:(CGFloat) bFloat alpha:(CGFloat) aFloat {
    return [UIColor colorWithRed:(rFloat / 255.0) green:(gFloat / 255.0) blue:(bFloat / 255.0) alpha:aFloat];
}
@end
